package com.itheima.pinda.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itheima.pinda.common.CustomIdGenerator;
import com.itheima.pinda.entity.PdTruckTypeGoodsType;
import com.itheima.pinda.mapper.PdTruckTypeGoodsTypeMapper;
import com.itheima.pinda.service.PdTruckTypeGoodsTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PdTruckTypeGoodsTypeServiceImpl extends ServiceImpl<PdTruckTypeGoodsTypeMapper,PdTruckTypeGoodsType> implements PdTruckTypeGoodsTypeService {

    @Autowired
    private CustomIdGenerator IdGenerator;
    @Autowired
    private PdTruckTypeGoodsTypeMapper pdTruckTypeGoodsTypeMapper;


    @Override
    public void AddList(List<PdTruckTypeGoodsType> truckGoods) {

        for (PdTruckTypeGoodsType truckGood : truckGoods) {
            pdTruckTypeGoodsTypeMapper.insert(truckGood);
        }
    }
}
